<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<c:choose>
    <c:when test="${sessionScope.isAdmin!=true}">
        <%
            response.setStatus(response.SC_MOVED_TEMPORARILY);
            response.setHeader("Location", "/");
        %>
    </c:when>
    <c:otherwise>
        <html>
        <head>
            <title>Title</title>
            <script src="../jquery.min.js"></script>
            <script type="text/javascript">
                function jump() {
                    window.location.href = 'goodsAll.jsp';
                }
            </script>
        </head>
        <body>
        <form action="/deleteGoods">
            input id here<br/>
            <input type="text" name="id" required/><br/><br/>

            <input type="submit" value="删除">
            <input type="button" value="取消" onclick=jump()>
        </form>
        </body>
        </html>
    </c:otherwise>
</c:choose>